/**
 * Author(s): xuming.Wong <xuming.Wong@gmail.com>
 */
#include "Application.h"

#include <QtGui/QSystemTrayIcon>

using namespace QSThink;

int main(int argc, char *argv[])
{
	if (!QSystemTrayIcon::isSystemTrayAvailable()) {
		QMessageBox::critical(0, QObject::tr("Systray"),
			QObject::tr("I couldn't detect any system tray "
			"on this system."));
		return 1;
	}

	QApplication::setQuitOnLastWindowClosed(false);

	ApplicationSingleton.init(argc,argv);
	ApplicationSingleton.run();
	
}
